/* Custom Pantone-Inspired Color Palette */
:root {
  --transparent-yellow: #F5EFC6;
  --sceptre-red: #4D0E12;
  --cerulean-blue: #A5BCD6;
  --potting-soil: #4A2E27;
  --java-brown: #231815;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background-color: #7f7f7f;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  padding: 20px;
}

/* CARD CONTAINER */
.assessment-card {
  background: #ffffff;
  border: 1px solid rgba(165, 188, 214, 0.6);
  width: 100%;
  max-width: 820px;
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.hidden {
  display: none !important;
}

/* HEADER & BACK BUTTON */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid #d0e0f0;
  border-radius: 12px;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--java-brown);
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: var(--transparent-yellow);
  border-color: #e2d9a3;
  color: var(--sceptre-red);
}

.back-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--sceptre-red);
  background: var(--transparent-yellow);
  padding: 6px 14px;
  border-radius: 16px;
}

.close-icon {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--java-brown);
  cursor: pointer;
}

.card-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--java-brown);
  margin-bottom: 8px;
  line-height: 1.25;
}

.card-desc {
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--potting-soil);
  margin-bottom: 20px;
  opacity: 0.9;
}

/* ACTION CONTROLS BAR */
.action-bar {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  background: linear-gradient(135deg, #fbf8e6 0%, #e8f0f8 100%);
  border: 1px solid #d0e0f0;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--java-brown);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.custom-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #c8d8e8;
  background: #ffffff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--java-brown);
  outline: none;
}

.btn-dark {
  background: var(--sceptre-red);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  height: 46px;
}

.btn-yellow {
  background: var(--transparent-yellow);
  color: var(--java-brown);
  border: 1px solid #e2d9a3;
  border-radius: 14px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* QUIZ WORKSPACE */
.quiz-workspace,
.results-workspace {
  background: linear-gradient(135deg, #fbf8e6 0%, #e8f0f8 100%);
  border: 1px solid #d0e0f0;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 16px;
}

.quiz-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.q-counter {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--sceptre-red);
  text-transform: uppercase;
}

.timer-badge {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--java-brown);
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid #d0e0f0;
}

.question-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--java-brown);
  margin-bottom: 16px;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.option-btn {
  background: #ffffff;
  border: 1.5px solid #d0e0f0;
  border-radius: 14px;
  padding: 14px 18px;
  text-align: left;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--java-brown);
  cursor: pointer;
  transition: all 0.2s ease;
}

.option-btn:hover {
  border-color: var(--cerulean-blue);
  background: #f4f8fc;
}

.option-btn.selected {
  background: var(--transparent-yellow);
  border-color: #e2d9a3;
  color: var(--sceptre-red);
}

.quiz-footer {
  display: flex;
  justify-content: flex-end;
}

/* RESULTS & ANALYTICS */
.results-heading {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--java-brown);
  margin-bottom: 12px;
}

.score-card {
  background: #ffffff;
  border: 1px solid #d0e0f0;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}

.final-score {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--sceptre-red);
  display: block;
  margin-bottom: 4px;
}

.score-msg {
  font-size: 0.92rem;
  color: var(--potting-soil);
  font-weight: 600;
}

.explanations-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 260px;
  overflow-y: auto;
}

.explanation-item {
  background: #ffffff;
  border: 1px solid #d0e0f0;
  border-radius: 12px;
  padding: 14px;
}

.explanation-item h5 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--java-brown);
  margin-bottom: 4px;
}

.explanation-item p {
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--potting-soil);
}

/* FOOTER STATUS */
.card-footer {
  display: flex;
  align-items: center;
}

.status-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--potting-soil);
}
